/**数据库 */
const mongoose = require('./model')
const GoodsSchema = mongoose.Schema({
  name: {
    type: String,
    minlength: 2
  },
  price: {
    type: Number,
    min: 0.0,
    default: 0.0
  },
  num: {
    type: Number,
    min: 0,
    default: 0
  }
})
const userModel = mongoose.model('Goods', GoodsSchema, 'goods')
module.exports = userModel
/***数据库结束 */
